import { get, postJSON } from '@/utils/request'
// 用户名密码登录
export const login = (loginParam) => {
  return postJSON('/login',loginParam)
}

// 发送短信验证码
export const sendCode = (mobile) => {
  return get('/login/code', mobile)
}

// 短信验证码登录
export const codeLogin = (mobile, code) => {
  return postJSON('/login/code', { mobile, code })
}
